Optimal. Leaf size=260 \[ \frac{3 c (d+e x)^4 \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{4 e^7}-\frac{(d+e x)^3 (2 c d-b e) \left (-2 c e (5 b d-3 a e)+b^2 e^2+10 c^2 d^2\right )}{3 e^7}+\frac{3 (d+e x)^2 \left (a e^2-b d e+c d^2\right ) \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{2 e^7}+\frac{\log (d+e x) \left (a e^2-b d e+c d^2\right )^3}{e^7}-\frac{3 x (2 c d-b e) \left (a e^2-b d e+c d^2\right )^2}{e^6}-\frac{3 c^2 (d+e x)^5 (2 c d-b e)}{5 e^7}+\frac{c^3 (d+e x)^6}{6 e^7} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.846001, antiderivative size = 260, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.05 \[ \frac{3 c (d+e x)^4 \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{4 e^7}-\frac{(d+e x)^3 (2 c d-b e) \left (-2 c e (5 b d-3 a e)+b^2 e^2+10 c^2 d^2\right )}{3 e^7}+\frac{3 (d+e x)^2 \left (a e^2-b d e+c d^2\right ) \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{2 e^7}+\frac{\log (d+e x) \left (a e^2-b d e+c d^2\right )^3}{e^7}-\frac{3 x (2 c d-b e) \left (a e^2-b d e+c d^2\right )^2}{e^6}-\frac{3 c^2 (d+e x)^5 (2 c d-b e)}{5 e^7}+\frac{c^3 (d+e x)^6}{6 e^7} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x + c*x^2)^3/(d + e*x),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 102.929, size = 257, normalized size = 0.99 \[ \frac{c^{3} \left (d + e x\right )^{6}}{6 e^{7}} + \frac{3 c^{2} \left (d + e x\right )^{5} \left (b e - 2 c d\right )}{5 e^{7}} + \frac{3 c \left (d + e x\right )^{4} \left (a c e^{2} + b^{2} e^{2} - 5 b c d e + 5 c^{2} d^{2}\right )}{4 e^{7}} + \frac{3 x \left (b e - 2 c d\right ) \left (a e^{2} - b d e + c d^{2}\right )^{2}}{e^{6}} + \frac{\left (d + e x\right )^{3} \left (b e - 2 c d\right ) \left (6 a c e^{2} + b^{2} e^{2} - 10 b c d e + 10 c^{2} d^{2}\right )}{3 e^{7}} + \frac{3 \left (d + e x\right )^{2} \left (a e^{2} - b d e + c d^{2}\right ) \left (a c e^{2} + b^{2} e^{2} - 5 b c d e + 5 c^{2} d^{2}\right )}{2 e^{7}} + \frac{\left (a e^{2} - b d e + c d^{2}\right )^{3} \log{\left (d + e x \right )}}{e^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((c*x**2+b*x+a)**3/(e*x+d),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.533631, size = 308, normalized size = 1.18 \[ \frac{e x \left (15 c e^2 \left (6 a^2 e^2 (e x-2 d)+4 a b e \left (6 d^2-3 d e x+2 e^2 x^2\right )+b^2 \left (-12 d^3+6 d^2 e x-4 d e^2 x^2+3 e^3 x^3\right )\right )+10 b e^3 \left (18 a^2 e^2+9 a b e (e x-2 d)+b^2 \left (6 d^2-3 d e x+2 e^2 x^2\right )\right )+3 c^2 e \left (5 a e \left (-12 d^3+6 d^2 e x-4 d e^2 x^2+3 e^3 x^3\right )+b \left (60 d^4-30 d^3 e x+20 d^2 e^2 x^2-15 d e^3 x^3+12 e^4 x^4\right )\right )+c^3 \left (-60 d^5+30 d^4 e x-20 d^3 e^2 x^2+15 d^2 e^3 x^3-12 d e^4 x^4+10 e^5 x^5\right )\right )+60 \log (d+e x) \left (e (a e-b d)+c d^2\right )^3}{60 e^7} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x + c*x^2)^3/(d + e*x),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.008, size = 546, normalized size = 2.1 \[ -3\,{\frac{ab{x}^{2}cd}{{e}^{2}}}+6\,{\frac{abc{d}^{2}x}{{e}^{3}}}-6\,{\frac{\ln \left ( ex+d \right ) abc{d}^{3}}{{e}^{4}}}-{\frac{d{c}^{3}{x}^{5}}{5\,{e}^{2}}}-{\frac{a{x}^{3}{c}^{2}d}{{e}^{2}}}+2\,{\frac{a{x}^{3}bc}{e}}+3\,{\frac{\ln \left ( ex+d \right ){c}^{2}{d}^{4}a}{{e}^{5}}}+3\,{\frac{\ln \left ( ex+d \right ){b}^{2}c{d}^{4}}{{e}^{5}}}-3\,{\frac{a{b}^{2}dx}{{e}^{2}}}+{\frac{b{x}^{3}{c}^{2}{d}^{2}}{{e}^{3}}}+{\frac{3\,{b}^{2}{x}^{2}c{d}^{2}}{2\,{e}^{3}}}-{\frac{{c}^{3}{d}^{5}x}{{e}^{6}}}-{\frac{\ln \left ( ex+d \right ){b}^{3}{d}^{3}}{{e}^{4}}}+{\frac{\ln \left ( ex+d \right ){c}^{3}{d}^{6}}{{e}^{7}}}-{\frac{{x}^{3}{c}^{3}{d}^{3}}{3\,{e}^{4}}}+3\,{\frac{{a}^{2}bx}{e}}+{\frac{3\,{b}^{2}{x}^{4}c}{4\,e}}+{\frac{{x}^{4}{c}^{3}{d}^{2}}{4\,{e}^{3}}}+{\frac{3\,a{x}^{2}{b}^{2}}{2\,e}}+{\frac{3\,a{x}^{4}{c}^{2}}{4\,e}}+{\frac{3\,b{x}^{5}{c}^{2}}{5\,e}}+3\,{\frac{{d}^{4}b{c}^{2}x}{{e}^{5}}}-{\frac{3\,b{x}^{4}{c}^{2}d}{4\,{e}^{2}}}+{\frac{{x}^{3}{b}^{3}}{3\,e}}+{\frac{\ln \left ( ex+d \right ){a}^{3}}{e}}+{\frac{{c}^{3}{x}^{6}}{6\,e}}-{\frac{{x}^{2}{b}^{3}d}{2\,{e}^{2}}}+{\frac{{b}^{3}{d}^{2}x}{{e}^{3}}}+{\frac{{x}^{2}{c}^{3}{d}^{4}}{2\,{e}^{5}}}+{\frac{3\,{x}^{2}{a}^{2}c}{2\,e}}+{\frac{3\,{c}^{2}{d}^{2}{x}^{2}a}{2\,{e}^{3}}}-{\frac{{b}^{2}{x}^{3}cd}{{e}^{2}}}-3\,{\frac{a{c}^{2}{d}^{3}x}{{e}^{4}}}-3\,{\frac{\ln \left ( ex+d \right ) b{c}^{2}{d}^{5}}{{e}^{6}}}-3\,{\frac{{b}^{2}c{d}^{3}x}{{e}^{4}}}-3\,{\frac{{a}^{2}cdx}{{e}^{2}}}-{\frac{3\,b{x}^{2}{c}^{2}{d}^{3}}{2\,{e}^{4}}}-3\,{\frac{\ln \left ( ex+d \right ){a}^{2}bd}{{e}^{2}}}+3\,{\frac{\ln \left ( ex+d \right ){a}^{2}c{d}^{2}}{{e}^{3}}}+3\,{\frac{\ln \left ( ex+d \right ) a{b}^{2}{d}^{2}}{{e}^{3}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((c*x^2+b*x+a)^3/(e*x+d),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 0.822914, size = 541, normalized size = 2.08 \[ \frac{10 \, c^{3} e^{5} x^{6} - 12 \,{\left (c^{3} d e^{4} - 3 \, b c^{2} e^{5}\right )} x^{5} + 15 \,{\left (c^{3} d^{2} e^{3} - 3 \, b c^{2} d e^{4} + 3 \,{\left (b^{2} c + a c^{2}\right )} e^{5}\right )} x^{4} - 20 \,{\left (c^{3} d^{3} e^{2} - 3 \, b c^{2} d^{2} e^{3} + 3 \,{\left (b^{2} c + a c^{2}\right )} d e^{4} -{\left (b^{3} + 6 \, a b c\right )} e^{5}\right )} x^{3} + 30 \,{\left (c^{3} d^{4} e - 3 \, b c^{2} d^{3} e^{2} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{2} e^{3} -{\left (b^{3} + 6 \, a b c\right )} d e^{4} + 3 \,{\left (a b^{2} + a^{2} c\right )} e^{5}\right )} x^{2} - 60 \,{\left (c^{3} d^{5} - 3 \, b c^{2} d^{4} e - 3 \, a^{2} b e^{5} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{3} e^{2} -{\left (b^{3} + 6 \, a b c\right )} d^{2} e^{3} + 3 \,{\left (a b^{2} + a^{2} c\right )} d e^{4}\right )} x}{60 \, e^{6}} + \frac{{\left (c^{3} d^{6} - 3 \, b c^{2} d^{5} e - 3 \, a^{2} b d e^{5} + a^{3} e^{6} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{4} e^{2} -{\left (b^{3} + 6 \, a b c\right )} d^{3} e^{3} + 3 \,{\left (a b^{2} + a^{2} c\right )} d^{2} e^{4}\right )} \log \left (e x + d\right )}{e^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)^3/(e*x + d),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.213581, size = 544, normalized size = 2.09 \[ \frac{10 \, c^{3} e^{6} x^{6} - 12 \,{\left (c^{3} d e^{5} - 3 \, b c^{2} e^{6}\right )} x^{5} + 15 \,{\left (c^{3} d^{2} e^{4} - 3 \, b c^{2} d e^{5} + 3 \,{\left (b^{2} c + a c^{2}\right )} e^{6}\right )} x^{4} - 20 \,{\left (c^{3} d^{3} e^{3} - 3 \, b c^{2} d^{2} e^{4} + 3 \,{\left (b^{2} c + a c^{2}\right )} d e^{5} -{\left (b^{3} + 6 \, a b c\right )} e^{6}\right )} x^{3} + 30 \,{\left (c^{3} d^{4} e^{2} - 3 \, b c^{2} d^{3} e^{3} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{2} e^{4} -{\left (b^{3} + 6 \, a b c\right )} d e^{5} + 3 \,{\left (a b^{2} + a^{2} c\right )} e^{6}\right )} x^{2} - 60 \,{\left (c^{3} d^{5} e - 3 \, b c^{2} d^{4} e^{2} - 3 \, a^{2} b e^{6} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{3} e^{3} -{\left (b^{3} + 6 \, a b c\right )} d^{2} e^{4} + 3 \,{\left (a b^{2} + a^{2} c\right )} d e^{5}\right )} x + 60 \,{\left (c^{3} d^{6} - 3 \, b c^{2} d^{5} e - 3 \, a^{2} b d e^{5} + a^{3} e^{6} + 3 \,{\left (b^{2} c + a c^{2}\right )} d^{4} e^{2} -{\left (b^{3} + 6 \, a b c\right )} d^{3} e^{3} + 3 \,{\left (a b^{2} + a^{2} c\right )} d^{2} e^{4}\right )} \log \left (e x + d\right )}{60 \, e^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)^3/(e*x + d),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 4.05886, size = 376, normalized size = 1.45 \[ \frac{c^{3} x^{6}}{6 e} + \frac{x^{5} \left (3 b c^{2} e - c^{3} d\right )}{5 e^{2}} + \frac{x^{4} \left (3 a c^{2} e^{2} + 3 b^{2} c e^{2} - 3 b c^{2} d e + c^{3} d^{2}\right )}{4 e^{3}} + \frac{x^{3} \left (6 a b c e^{3} - 3 a c^{2} d e^{2} + b^{3} e^{3} - 3 b^{2} c d e^{2} + 3 b c^{2} d^{2} e - c^{3} d^{3}\right )}{3 e^{4}} + \frac{x^{2} \left (3 a^{2} c e^{4} + 3 a b^{2} e^{4} - 6 a b c d e^{3} + 3 a c^{2} d^{2} e^{2} - b^{3} d e^{3} + 3 b^{2} c d^{2} e^{2} - 3 b c^{2} d^{3} e + c^{3} d^{4}\right )}{2 e^{5}} + \frac{x \left (3 a^{2} b e^{5} - 3 a^{2} c d e^{4} - 3 a b^{2} d e^{4} + 6 a b c d^{2} e^{3} - 3 a c^{2} d^{3} e^{2} + b^{3} d^{2} e^{3} - 3 b^{2} c d^{3} e^{2} + 3 b c^{2} d^{4} e - c^{3} d^{5}\right )}{e^{6}} + \frac{\left (a e^{2} - b d e + c d^{2}\right )^{3} \log{\left (d + e x \right )}}{e^{7}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x**2+b*x+a)**3/(e*x+d),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.206169, size = 621, normalized size = 2.39 \[{\left (c^{3} d^{6} - 3 \, b c^{2} d^{5} e + 3 \, b^{2} c d^{4} e^{2} + 3 \, a c^{2} d^{4} e^{2} - b^{3} d^{3} e^{3} - 6 \, a b c d^{3} e^{3} + 3 \, a b^{2} d^{2} e^{4} + 3 \, a^{2} c d^{2} e^{4} - 3 \, a^{2} b d e^{5} + a^{3} e^{6}\right )} e^{\left (-7\right )}{\rm ln}\left ({\left | x e + d \right |}\right ) + \frac{1}{60} \,{\left (10 \, c^{3} x^{6} e^{5} - 12 \, c^{3} d x^{5} e^{4} + 15 \, c^{3} d^{2} x^{4} e^{3} - 20 \, c^{3} d^{3} x^{3} e^{2} + 30 \, c^{3} d^{4} x^{2} e - 60 \, c^{3} d^{5} x + 36 \, b c^{2} x^{5} e^{5} - 45 \, b c^{2} d x^{4} e^{4} + 60 \, b c^{2} d^{2} x^{3} e^{3} - 90 \, b c^{2} d^{3} x^{2} e^{2} + 180 \, b c^{2} d^{4} x e + 45 \, b^{2} c x^{4} e^{5} + 45 \, a c^{2} x^{4} e^{5} - 60 \, b^{2} c d x^{3} e^{4} - 60 \, a c^{2} d x^{3} e^{4} + 90 \, b^{2} c d^{2} x^{2} e^{3} + 90 \, a c^{2} d^{2} x^{2} e^{3} - 180 \, b^{2} c d^{3} x e^{2} - 180 \, a c^{2} d^{3} x e^{2} + 20 \, b^{3} x^{3} e^{5} + 120 \, a b c x^{3} e^{5} - 30 \, b^{3} d x^{2} e^{4} - 180 \, a b c d x^{2} e^{4} + 60 \, b^{3} d^{2} x e^{3} + 360 \, a b c d^{2} x e^{3} + 90 \, a b^{2} x^{2} e^{5} + 90 \, a^{2} c x^{2} e^{5} - 180 \, a b^{2} d x e^{4} - 180 \, a^{2} c d x e^{4} + 180 \, a^{2} b x e^{5}\right )} e^{\left (-6\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x^2 + b*x + a)^3/(e*x + d),x, algorithm="giac")
[Out]